import { Entity, Column } from 'typeorm';
import {IsNotEmpty} from 'class-validator'
import { CommonEntity } from '@/common/entities/common.entity';

@Entity('student')
export class Student extends CommonEntity{
    @Column({
        comment:'昵称',
        default:'',
        nullable: true,
    })
    @IsNotEmpty()
    name:string;
    @Column({
        comment:'描述信息',
        nullable: true,
    })
    desc:string;
    @Column({
        comment:'手机号',
        nullable: true,
    })
    tel:string;
    @Column({
        comment:'头像',
        nullable: true,
    })
    avatar:string;
    @Column({
        comment:'密码',
        nullable: true,
    })
    password:string;
    @Column({
        comment:'账户信息',
        nullable: true,
    })
    account:string;
    
    // @Column({
    //     comment:'验证码',
    //     nullable: true,
    // })
    // code:string;
    // @Column({
    //     comment:'验证码生成时间',
    //     nullable: true,
    // })
    // codeCreateTimeAt:Date;
}